package com.agile.major.service;

import com.agile.major.domain.FreshGraduateBookAndTrain;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing FreshGraduateBookAndTrain.
 */
public interface FreshGraduateBookAndTrainService {

    /**
     * Save a freshGraduateBookAndTrain.
     *
     * @param freshGraduateBookAndTrain the entity to save
     * @return the persisted entity
     */
    FreshGraduateBookAndTrain save(FreshGraduateBookAndTrain freshGraduateBookAndTrain);

    /**
     *  Get all the freshGraduateBookAndTrains.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<FreshGraduateBookAndTrain> findAll(Pageable pageable);

    /**
     *  Get the "id" freshGraduateBookAndTrain.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    FreshGraduateBookAndTrain findOne(Long id);

    /**
     *  Delete the "id" freshGraduateBookAndTrain.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);
    // 根据专业查询
    Page<FreshGraduateBookAndTrain> getFreshGraduateBookAndTrainByMajor(Long id,Pageable pageable);
}
